<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Comments extends Model
{
    protected $table = 'comments';
    public $timestamps = false;

    /**
     * 获取评论的点赞数
     */
    public function getPraiseByComments()
    {
    	return $this->hasMany('App\Cpraise', 'replay_id');
    }
}
